package com.guigu.abo.service.impl;

import com.guigu.abo.mapper.ReSpecialityMapper;
import com.guigu.abo.pojo.ReSpeciality;
import com.guigu.abo.service.ReSpecialityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;

@Service
public class ReSpcialityServiceImpl implements ReSpecialityService {
    @Autowired
    private ReSpecialityMapper reSpecialityMapper;


    @Override
    public int deleteByPrimaryKey(Integer spId) {
        return reSpecialityMapper.deleteByPrimaryKey(spId);
    }

    @Override
    public int insert(ReSpeciality record) {
        return reSpecialityMapper.insert(record);
    }

    @Override
    public List<ReSpeciality> selectAll() {
        return reSpecialityMapper.selectAll();
    }

    @Override
    public int insertSelective(ReSpeciality record) {
        return reSpecialityMapper.insertSelective(record);
    }

    @Override
    public ReSpeciality selectByPrimaryKey(Integer spId) {
        return reSpecialityMapper.selectByPrimaryKey(spId);
    }

    @Override
    public int updateByPrimaryKeySelective(ReSpeciality record) {
        return reSpecialityMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ReSpeciality record) {
        return reSpecialityMapper.updateByPrimaryKey(record);
    }
}
